extends Node

# Window related staff
var W_resolution : Vector2i = Vector2i(1280, 720)

# Global control variables
var is_game_running : bool = false
var is_game_paused : bool = false
var is_game_over : bool = false

# Game constants / variables
const G_gravity : int = 800

const _trail_color : Array[Color] = [
	Color(0.89, 0.12, 0.0, 1.0), Color(0.89, 0.37, 0.0, 1.0), Color(0.95, 0.92, 0.2, 1.0),
	Color(0.38, 0.8, 0.39, 1.0), Color(0.08, 0.6, 0.73, 1.0), Color(0.08, 0.16, 0.77, 1.0),
	Color(0.29, 0.11, 0.45, 1.0)
]
var G_trail_color : Array[Color] = _trail_color.duplicate(true)

var G_baseScrollSpeed : float = 540
var G_scrollSpeed : float = G_baseScrollSpeed

var G_score : int = 0
var G_best_score: int = 0
var G_natural_score_increase: int = 10

enum Phase{Day, Night}
var G_phase : Phase = Phase.Day
var G_entered_night : bool = false
